//
//  YPDataBase.h
//  WHISPER
//
//  Created by lanou3g on 15/12/29.
//  Copyright © 2015年 王艳苹. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface YPDataBase : NSObject

- (void)insertDataWithSelectDic:(NSDictionary *)dic success:(void (^)())success fail:(void (^)(NSError *))fail;
- (void)insertDataWithDynamicDic:(NSDictionary *)dic success:(void (^)())success fail:(void (^)(NSError *))fail;
- (void)insertDataWithFramentDic:(NSDictionary *)dic success:(void (^)())success fail:(void (^)(NSError *))fail;
- (void)getSelectDataFromDataBaseSuccess:(void (^)(NSArray*))list wheel:(void (^)())listwheel fail:(void (^)(NSError *))fail;
- (void)getDynamicDataFromDataBaseSuccess:(void (^)(NSArray*))success fail:(void (^)(NSError *))fail;
- (void)getFramentDataFromDataBaseSuccess:(void (^)(NSArray*))success fail:(void (^)(NSError *))fail;
- (void)deleteSelectSuccess:(void (^)())success fail:(void (^)(NSError *))fail;
- (void)deleteDynamicSuccess:(void (^)())success fail:(void (^)(NSError *))fail;
- (void)deleteFramentSuccess:(void (^)())success fail:(void (^)(NSError *))fail;

@end
